﻿using System;
using BoneSystem.Extensions.Grid;

namespace BoneSystem.Extensions.Annotations
{
    [AttributeUsage(AttributeTargets.All,AllowMultiple = true)]
    public class GridColumnAttribute : Attribute,IGridColumn
    {
        public GridColumnAttribute()
        {
            Width = 300;
        }
        public string DisplayName { get; set; }
        public string TableColumnName { get; set; }
        public string FieldName { get; set; }
        public int Width { get; set; }
        public int Order { get; set; }
        public string Format { get; set; }
        public bool Sortable { get; set; }
        public bool Filter { get; set; }
    }
}
